<!DOCTYPE html>
<html xmlns:layout="http://www.ultraq.net.nz/thymeleaf/layout" layout:decorate="~{layout}">
   <head>
      <meta http-equiv="X-UA-Compatible" content="IE=edge" />
      <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no" />
      <title th:text="#{screen.authentication.warning}">CAS Login Message View</title>
      <link href="../../static/css/cas.css" rel="stylesheet" th:remove="tag" />
   </head>

   <body>
      <main class="container mt-3 mb-3">
         <div layout:fragment="content" class="loginMessageView mdc-card card p-4 w-lg-66 m-auto">
            <h1 class="m-0" th:text="#{screen.authentication.warning}">Authentication Succeeded with Warnings</h1>
            <ul class="mdc-list">
               <li class="mdc-list-item text-warn" tabindex="0" th:each="message : ${messages}">
                  <span class="mdc-list-item__text" th:utext="${message.text}">Lorem ipsum dolor sit amet, consectetur
                  adipiscing elit.</span>
               </li>
            </ul>
            <div class="cas-field form-group d-flex">
               <form method="post" id="form" class="me-2" th:action="@{/login}">
                  <input type="hidden" name="execution" th:value="${flowExecutionKey}" />
                  <input type="hidden" name="_eventId" value="proceed" />
                  <div th:replace="~{fragments/submitbutton :: submitButton (messageKey='screen.button.continue', id='continue', name='continue')}"/>
               </form>

               <form method="post" id="changePasswordForm" class="fm-v" th:action="@{/login}"
                  th:if="${passwordManagementEnabled} AND ${passwordExpirationWarningFound}">
                  <input type="hidden" name="execution" th:value="${flowExecutionKey}" />
                  <input type="hidden" name="_eventId" value="changePassword" />
                  <button class="mdc-button mdc-button--raised btn btn-primary mdc-card__actions_action mdc-card__actions_action--button"
                     name="changePassword" accesskey="l" th:value="#{screen.button.changePassword}"
                     id="changePassword" value="Change Password">
                  <span class="mdc-button__label" th:text="#{screen.button.changePassword}">Change Password</span>
                  </button>
               </form>

            </div>
         </div>
      </main>
   </body>
</html>
